import {RouteRecordRaw} from 'vue-router'

const routes: RouteRecordRaw[] = [
    {
        path: '/',
        redirect: "/main-vite/login",
    },
    {
        path: '/main-vite',
        redirect: "/main-vite/login",
    },
    {
        path: '/main-vite/login',
        component: () => import('../views/login/login.vue')
    },
    {
        path: '/main-vite/home',
        component: () => import("../views/home/Home.vue"),
        children: [
            {
                path: '/main-vite/enterpriseInfo',
                component: () => import('@/views/enterpriseInfo/index.vue')
            },
            {
                path: '/main-vite/enterpriseStaff',
                component: () => import('@/views/enterpriseStaff/index.vue')
            },
            {
                path: '/main-vite/enterpriseFinance',
                component: () => import('@/views/enterpriseFinance/index.vue')
            },{
                path: '/main-vite/app-vite:page*',
                name:'SubApp',
                component: () => import("@/views/sub-app/SubApp.vue"),
            },
        ]
    },

];
export default routes
